// pages/classify/classify.js
const app = getApp()
Page({
    _handlerNavBar:function(evt){
        // console.log(evt.currentTarget.id)
        this.setData({
            currentTab: evt.currentTarget.id
        })
    },
    _handlerSwiper: function (evt) {
        // console.log(evt.detail.current)
        this.setData({
            currentTab: evt.detail.current
        })
    },
  /**
   * 页面的初始数据
   */
  data: {
      navbar:[
        '小森林盆栽',
        '观叶小盆栽',
        '观花小盆栽',
        '观果小盆栽',
        '其它'
      ],
      infos:[
        {
          img:'https://img-blog.csdnimg.cn/20200308102307623.png',
          text:'文竹',
          url:'../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '多肉',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '吊兰',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '仙人掌',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '含羞草',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '铜钱草',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '绿萝',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '薄荷',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '文竹',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '多肉',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '吊兰',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '仙人掌',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '含羞草',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '铜钱草',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '绿萝',
          url: '../duorou/duorou'
        }, {
          img: 'https://img-blog.csdnimg.cn/20200308102307623.png',
          text: '薄荷',
          url: '../duorou/duorou'
        }
      ],
      currentTab:0,
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
      
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})